<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        h1>p {
            color: teal;
        }
    </style>
</head>

<body>
    <h1>
        <p>子元素1
            <p>孙元素1</p>
            <p>子元素3</p>
            <h2>是子h</h2>
        </p>
    </h1>
    <h2>
        <p>子元素2</p>
    </h2>
</body>

</html>